package net.yxsoft.enumclass;

import rapid.core.EnumClsBase;

import java.util.ArrayList;
import java.util.List;

/**
 * 用户类型
 *
 * @author zhaohaibo
 */
public class TsUserTypeEnumCls extends EnumClsBase<TsUserTypeEnumCls> {

  public TsUserTypeEnumCls(String text, String value, String key) {
    super(text, value, key);
  }

  /**
   * 管理员
   */
  public static final TsUserTypeEnumCls TYPE_0 = new TsUserTypeEnumCls("管理员", "0", "type0");

  public static final TsUserTypeEnumCls TYPE_1 = new TsUserTypeEnumCls("普通用户", "1", "type1");


  public static final List<TsUserTypeEnumCls> LIST_DEFAULT = new ArrayList<TsUserTypeEnumCls>() {
    {
      add(TYPE_0);
      add(TYPE_1);
    }
  };
}